import request from '@/utils/request'

export function chatStream(data) {
  return request({
    url: '/market/chatStream',
    method: 'post',
    data
  })
}

export function chat(data) {
  return request({
    url: '/market/chat',
    method: 'post',
    data
  })
}

export function storeChatMessage(data, conversationId, modelType) {
  return request({
    url: '/market/storeChatMessage/' + conversationId + '/' + modelType,
    method: 'post',
    data
  })
}
